function [bits_count, probabilities] = adaptive_cost_KT(x, alphabet_size)
    [bits_count, probabilities] = adaptive_cost(x, alphabet_size, @count_probability_KT);
end

function [p] = count_probability_KT(num, t, current_alphabet_size, alphabet_size)
	p = (2 * num + 1) / (2 * t + alphabet_size);
end
